package com.ybkj.daijia;


public class OrderNumberConfig {

    /**
     * 渠道
     */
    public static final String FROMWEB = "01";//网站

    public static final String FROMIOS = "02";//ios

    public static final String FROMANDROID = "03";//android

    public static final String FROMCUSTOMER = "04";//客户端(ios/android)

    public static final String WEIXIN = "05";//微信

    public static final String MANAGER = "06";//客户经理

    public static final String WEB = "07";//网站

    public static final String BOSS = "09";//老板端


    /**
     * 客户类型
     */
    public static final String CUSTOMER = "01";//普通

    public static final String COMPANY = "02";//企业

    public static final String VIP = "03";//vip


    /**
     * 财务记录 金额类型
     */
    public static final String FINANCIAL_TICHENG = "01";//提成金额

    public static final String FINANCIAL_ORDER = "02";//订单金额

    public static final String FINANCIAL_BAOXIAO = "03";//报销金额

    public static final String FINANCIAL_XINXI = "04";//保险费/信息费

    public static final String FINANCIAL_RENGONG = "05";//人工添加

    public static final String FINANCIAL_MANAGERTIXIAN = "06";//客户经理提成费

    public static final String FINANCIAL_MEMBERREBATE = "07";//客户推荐提成

    public static final String FINANCIAL_WORKCAR = "08";//工作车收费

    public static final String FINANCIAL_DRIVER_REBATE = "09";//司机推荐提成

    public static final String FINANCIAL_DRIVER_REBATE_REWARD = "10";//司机推荐奖励提现

    /**
     * 财务记录 对象类型
     */
    public static final String FINANCIAL_WHO_MEMBER = "01";//客户

    public static final String FINANCIAL_WHO_DRIVER = "02";//司机

    public static final String FINANCIAL_WHO_RENGONG = "03";//人工添加

    public static final String FINANCIAL_WHO_MANAGER = "04";//客户经理

    public static final String FINANCIAL_WHO_SYS = "05";//系统

    public static String padZero(long runningNumber) {
        if (runningNumber < 10) {
            return "000" + runningNumber;
        } else if (runningNumber < 100) {
            return "00" + runningNumber;
        } else if (runningNumber < 1000) {
            return "0" + runningNumber;
        } else {
            return String.valueOf(runningNumber);
        }
    }

}
